<?php

namespace app\company\validate;


class DeliverLineValidate extends BaseValidate
{
    public function __construct()
    {
        $rule = [
            'name'              => 'require|max:20',
            'deliver_driver_id' => 'require',
            'warehouse_id'      => 'require',

        ];

        $message = [

        ];

        $scene = [
            'add'  => ['name', 'deliver_driver_id', 'warehouse_id'],
        ];
        parent::__construct($rule, $message, $scene);
    }
}